home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GWMALLOC.ZIP;1 / GWMALLOC.TAR / gw_malloc / error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  1.7 KB  |  56 lines

  1. /*
  2.  * defines for the error and message code.
  3.  *
  4.  * Copyright 1992 by Gray Watson and the Antaire Corporation
  5.  *
  6.  * This file is part of the malloc-debug package.
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library (see COPYING-LIB); if not, write to the
  20.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  * The author of the program may be contacted at gray.watson@antaire.com
  23.  *
  24.  * $Id: error.h,v 1.7 1993/04/05 22:30:08 gray Exp $
  25.  */
  26.  
  27. #ifndef __ERROR_H__
  28. #define __ERROR_H__
  29.  
  30. #include <stdarg.h>            /* for ... */
  31. #include "malloc.h"            /* for IMPORT */
  32.  
  33. /*<<<<<<<<<<  The below prototypes are auto-generated by fillproto */
  34.  
  35. /* global debug flags that are set my MALLOC_DEBUG environ variable */
  36. IMPORT    int        _malloc_debug;
  37.  
  38. /*
  39.  * message writer with printf like arguments
  40.  */
  41. IMPORT    void    _malloc_message(const char * format, ...);
  42.  
  43. /*
  44.  * kill the program because of an internal malloc error
  45.  */
  46. IMPORT    void    _malloc_die(void);
  47.  
  48. /*
  49.  * malloc version of perror of an error in STR
  50.  */
  51. IMPORT    void    _malloc_perror(const char * func);
  52.  
  53. /*<<<<<<<<<<   This is end of the auto-generated output from fillproto. */
  54.  
  55. #endif /* ! __ERROR_H__ */
  56.